package org.rmm.representation;

import org.rmm.model.Order;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;

public class OrderRepresentation {

	public String writeOrderRepresentation(final Order order) {
		XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
		xstream.setMode(XStream.NO_REFERENCES);
		xstream.alias("order", Order.class);

		return xstream.toXML(order);
	}
}